package com.umgsai.thread.thread24;

import java.util.concurrent.atomic.AtomicLong;

public class MyService {
	public static AtomicLong atomicLong = new AtomicLong();
	/*synchronized*/ public void addNum() {
		System.out.println(Thread.currentThread().getName() + " 加了100之后是：" + atomicLong.addAndGet(100));
		atomicLong.addAndGet(1);
	}
}
